<template>
<div>
  <t-navbar title="操作痕迹记录" :fixed="false" left-arrow @left-click="back" />

  <div>
    <div v-for="(l,index) in logs" :key="index" style="margin-top: 8px;padding: 15px;border-bottom: 1px solid grey">
      <div style="font-weight: bold">{{l.type}}</div>
      <div style="margin-top: 5px">
        <div style="font-size: 12px;color: grey">{{l.createTime}}</div>
        <div style="margin-top: 5px">{{l.info}}</div>
      </div>

    </div>

  </div>
</div>
</template>

<script setup>
import {ref,onMounted} from "vue";
import {get} from "../util/Request.js";

const logs=ref([])

onMounted(()=>{
  //请求接口 查询操作日志
  get("log/all").then(r=>{
    logs.value=r.data
  })
})
const back=()=>{
  history.back()
}
</script>

<style scoped>

</style>